﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleModeler
{
    /// <summary>
    /// Helperklasse
    /// </summary>
    public static class Helper
    {
        /// <summary>
        /// Rechnet Grad in Radiant um
        /// </summary>
        /// <param name="angle">Winkel in Grad welcher umgerechnet werden soll</param>
        /// <returns>Winkel in Radiant</returns>
        public static double DegreeToRadian(double angle) { return Math.PI * angle / 180.0; }

        /// <summary>
        /// Rechnet Radiant in Grad um
        /// </summary>
        /// <param name="angle">Winkel in Radiant welcher umgerechnet werden soll</param>
        /// <returns>Winkel in Grad</returns>
        public static double RadianToDegree(double angle) { return angle * (180.0 / Math.PI); }
    }
}
